<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>조립PC의 대명사- PC Master~!~!</title>
<script>
function leaveCheck(){
	var pw1=document.getElementById("pw1").value;
	var pw2=document.getElementById("pw2").value;
	
	if(pw1 != pw2){
		alert("비밀번호가 일치하지 않습니다.");
		document.getElementById("pw1").value="";
		document.getElementById("pw2").value="";
		document.getElementById("pw1").focus();
		return false;
	}
	
	leaveForm.submit();
}
</script>
</head>
<body>

<!-- 상단 로그인 패널을 include로 삽입 -->
<div style="position:absolute; left:50%; top:0px; width:1200px; height:80px; margin-left:-600px;z-index:1 ">
<%@ include file="../loginPanel.jsp" %>
</div>

<!-- 상단 및 좌측 메뉴(카테고리)리스트를 include로 삽입 -->
<div style="position:absolute; left:50%; top:0px; width:1200px; height:80px; margin-left:-600px;">
<%@ include file="../top.jsp" %>
</div>

<div style="position:absolute; left:50%; top:160px; width:1000px; height:80px; margin-left:-400px;">
<!--------------------------------------여기다가 각자 삽입------------------------------------>
<!-- 타이틀 -->
<table style="margin-left: 30px; margin-top:30px" border="0" cellspacing="0" cellpadding="0">
	<tr>
		<td><img src="/web/resources/images/bar_t_line.gif" border="0" alt="" /></td>
		<td style="color:333333;font-size:14px;font-weight:bold;">회원 탈퇴</td>
	</tr>
</table>	  
<!-- 타이틀 끝 --><br/>
<form name="leaveForm" action="/web/member/leave" method="post">
<!-- 히든 타입 -->
<input type="hidden" name="member_id" value="${user }" />
<!-- 히든 타입 끝 -->
비밀번호: 
<input type="password" name="member_password" id="pw1" /> <br/>
비밀번호 확인: 
<input type="password" id="pw2" />
<input type="button" value="회원탈퇴" onclick="leaveCheck()"/>
<input type="button" value="취소" onclick="location.href='/web'"/>
</form>
<!--------------------------------------   삽입 끝       ------------------------------------>
</div> 

<!-- 하단 이용약관, 고객센터, 회사정보 등의 정보를 include로 삽입 -->
<div style="position:absolute; left:0; top:1200px; width:100%; height:80px; ">
<%@ include file="../bottom.jsp"%>
</div>
</body>
</html>